package com.yowasa.xiuxian.engine.item.zhuangbei.faqi;

import com.yowasa.xiuxian.annoations.Item;
import com.yowasa.xiuxian.engine.item.ItemInterface;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.enums.ItemTypeEnum;
import com.yowasa.xiuxian.entity.enums.QualityEnum;

import java.util.Set;


@Item(name = "神乐之真意", type = ItemTypeEnum.WU_QI, price = 30000)
public class ShenLeZhenYi implements ItemInterface {

    private String attrJson = "{" +
            "\"hp\":0," +
            "\"mp\":500," +
            "\"atk\":0," +
            "\"spell\":100," +
            "\"def\":0," +
            "\"res\":50," +
            "\"imm\":0," +
            "\"spd\":0," +
            "\"quality\":0" +
            "}";


    @Override
    public String desc() {
        return "表演神乐之舞时所用的神铃，为宫司所赐福。神樱之香萦绕其上。\n提供法力值，法抗，法强。";
    }

    @Override
    public String effect(UserBO userBO) {
        if (!userBO.getUserConfig().getBattleStrategyList().contains("神樱神游")){
            userBO.getUserConfig().getBattleStrategyList().add("神樱神游");
        }
        return "现在可以使用神樱神游了！！！";
    }

    @Override
    public String removeEffect(UserBO userBO) {
        if (userBO.getUserConfig().getBattleStrategyList().contains("神樱神游")){
            userBO.getUserConfig().getBattleStrategyList().remove("神樱神游");
        }
        return "遗忘了神樱神游！！！";
    }


    //血，蓝，     物攻，     法攻，    物抗，    法抗，    免疫，    速度
    //{"hp":603,"chp":603,"mp":97,"cmp":97,"atk":26,"spell":14,"def":38,"res":14,"imm":25,"spd":243}
    public String attr(QualityEnum qualityEnum){
        String attr = getAttr(qualityEnum, attrJson);
        return attr;
    }

}

